
package com.shai.wool.activity.param;

import java.util.Date;

import com.shai.wool.activity.entity.ActivityInfoVO;
import com.shai.wool.common.param.BaseParam;

/**
 * 活动信息查询条件类
 *
 * @author 朱国军
 * @version 2016年03月23日 朱国军
 */
public class ActivityInfoParam extends ActivityInfoVO implements BaseParam {
    
    /** 查询开始数量 */
    private Integer startNum;
    
    /** 查询开始的页码：第一页为1 */
    private Integer pageNo;
    
    /** 查询每页显示数量 默认为10 */
    private Integer pageSize;
    
    /** 总数据条数 */
    private Integer dataCount;

    /** 总页码数 */
    private Integer pageCount;
    
    /** 查询排序字段 */
    private String orderField;
    
    /** 查询排序顺序 */
    private String orderDirection;

    /** 系统当前时间 */
    private Date systemTime;
    
    @Override
    public Integer getStartNum() {
        return startNum;
    }
    
    @Override
    public void setStartNum(Integer startNum) {
        this.startNum = startNum;
    }

    @Override
    public Integer getPageNo() {
        return pageNo;
    }
    
    @Override
    public void setPageNo(Integer pageNo) {
        if (null == pageNo || pageNo == 0) {
            pageNo = 1;
        }
        this.pageNo = pageNo;
    }
    
    @Override
    public Integer getPageSize() {
        return pageSize;
    }
    
    @Override
    public void setPageSize(Integer pageSize) {
        if (null == pageSize || pageSize == 0) {
            pageSize = 10;
        }
        this.pageSize = pageSize;
    }
    
    @Override
    public void setDataCount(Integer dataCount) {
        this.dataCount = dataCount;
        
    }

    @Override
    public Integer getDataCount() {
        return dataCount;
    }

    @Override
    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    @Override
    public Integer getPageCount() {
        return pageCount;
    }
    
    @Override
    public String getOrderField() {
        return orderField;
    }
    
    @Override
    public void setOrderField(String orderField) {
        this.orderField = orderField;
    }
    
    @Override
    public String getOrderDirection() {
        return orderDirection;
    }
    
    @Override
    public void setOrderDirection(String orderDirection) {
        this.orderDirection = orderDirection;
    }

    /**
     * 获取系统当前时间
     *
     * @return 系统当前时间
     */
    public Date getSystemTime() {
        return systemTime;
    }

    /**
     * 设置系统当前时间
     *
     * @param systemTime 系统当前时间
     */
    public void setSystemTime(Date systemTime) {
        this.systemTime = systemTime;
    }

}
